package muestraTecnologica;

import javax.swing.table.AbstractTableModel;


public class TablaReportesModel extends AbstractTableModel{
    private static final long serialVersionUID = 1L;

    
    private String[] columnNames;
    private Object[][] data = new Object[5][3];

    public TablaReportesModel(){}
    
    public TablaReportesModel(String[] columnNames, Object[][] data) {
        this.columnNames = columnNames;
        this.data = data;
    }

    public String[] getColumnNames() {
        return columnNames;
    }

    public void setColumnNames(String[] columnNames) {
        this.columnNames = columnNames;
    }

    public Object[][] getData() {
        return data;
    }

    public void setData(Object[][] data) {
        this.data = data;
    }
    
    @Override
    public int getRowCount() {
        return data.length;
    }

    @Override
    public int getColumnCount() {
        return columnNames.length;
    }

    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
       return data[rowIndex][columnIndex];
    }
    
}
